/*!
 * Fresns v1.0.0 (https://fresns.cn/)
 * Copyright 2020 Jarvis Tang (https://tangjie.me)
 * Licensed under Apache License 2.0 (https://gitee.com/Fresns/Docs/LICENSE)
*/

body {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background-color: #f5f8fa;
}

/* Navbar */
.home-banner img {
    width: 100%;
}
.toptab {
    background-color: #fff;
    padding: 0.6rem 0;
}
.toptab-btn {
    width: 12%;
    text-align: center;
}
.toptab-btn .btn_icon {
    color: #07c160;
    padding: 0.6rem;
    font-size: 1.1rem;
}
.toptab-nav {
    width: 76%;
}
.toptab-nav .nav .active {
    border-bottom: 0.2rem solid #07c160;
}
.toptab-nav .navbar-link {
    padding: 0.8rem 0;
    margin: 0 1rem;
    text-decoration: none;
}
.toptab-text {
    width: 76%;
    text-align: center;
    padding-top: 0.05rem;
}

/* list */
.list {
    background-color: #fff;
    margin: 1rem 0;
}
.user-avatar {
    width: 2.4rem;
    height: 2.4rem;
    margin: 1rem;
}
.user-avatar_decorate {
    width: 4.4rem;
    height: 4.4rem;
    position: absolute;
}
.thread-item {
    padding-top: 0.75rem;
}
.user-nickname {
    font-size: 1rem;
}
.user-anonymous {
    color: #6c757d;
}
.user-icon {
    margin-top: -0.1rem;
    margin-left: 0.1rem;
}
.user-icon .user-role {
    font-weight: 400;
    background-color: #f6f6f6;
    padding: 0.3rem 0.6rem;
    margin-left: 0.4rem;
}
.user-icon .user-icon_img {
    vertical-align: middle;
    margin-left: 0.2rem;
    height: 1.2rem;
}
.thread-info {
    font-size: 0.75rem;
    color: #999999;
    margin-top: 0.15rem;
}
.thread-info .thread-lbs {
    margin-left: 0.6rem;
}
.thread-info .thread-lbs i {
    margin-right: 0.2rem;
}
.list-body {
    margin: 0 1rem;
}
.thread-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.thread-text {
    font-size: 1rem;
    margin-bottom: 1rem;
}
.thread-text p {
    margin-bottom: 0.4rem;
}
.thread-collapse {
    margin: -0.8rem;
    font-size: 1rem;
}
.thread-collapse:hover {
    text-decoration: none;
}
.thread-collapse:focus {
    box-shadow: none;
    text-decoration: none;
}
.list-body .thread-categories {
    margin-bottom: 1rem;
}
.list-body .thread-categories a {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.55rem 0.9rem;
}
.list-footer {
    padding: 0 0.4rem 0.6rem 0.4rem;
    display: flex;
}
.thread-like {
    width: 22%;
}
.thread-comment {
    width: 22%;
}
.thread-share {
    width: 22%;
}
.thread-more {
    width: 34%;
}
.list-footer img {
    width: 1.2rem;
    height: 1.2rem;
    float: left;
    margin-right: 0.2rem;
}
.list-footer .btn {
    font-size: 0.75rem;
    color: #707070;
    text-decoration: none;
}
.list-footer .btn:focus {
    box-shadow: none;
}
.thread-like .btn, .thread-comment .btn {
    display: flex;
}
.list-footer .like_active {
    color: #fda956;
    font-weight: bolder;
}
.list-footer .dropdown-item {
    font-size: 0.9rem;
}
.list-footer .dropdown-item i {
    width: 1.2rem;
}

/* thread attachments */
.type-image {
    margin-bottom: 0.4rem;
}
.type-image .row {
    margin-left: -5px;
    margin-right: -5px;
}
.type-image .col {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 0px;
    padding-bottom: 10px;
    max-width: 60%;
}
.type-video {
    margin-bottom: 1rem;
    width: 50%;
}
.type-video .video-position {
    position: relative;
    width: 100%;
}
.type-video .video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
}
.type-audio {
    margin-bottom: 1rem;
    width: 100%;
}
.type-file {
    margin-bottom: 1rem;
    border-radius: 0.2rem;
    background-color: #f1f3f4;
    color: #5a5c66;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.type-file:hover {
    background-color: #dee2e6;
    cursor: pointer;
}
.type-file .file-icon {
    background-color: #f57f59;
    border-top-left-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.4rem 1rem;
}
.type-file .file-name {
    margin-left: 0.75rem;
}

/* thread post hot */
.thread-post-hot {
    background-color: #f5f8fa;
    font-size: 0.85rem;
    padding: 1rem 1rem 0 1rem;
    border-radius: 0.4rem;
    margin-bottom: 1rem;
    overflow: auto;
}
.thread-post-hot .badge-warning {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
}
.thread-post-hot .post-text {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
}
.thread-post-hot .type-image {
    margin-bottom: 0.6rem;
}

/* thread extend */
.type-text {
    margin-bottom: 1rem;
    padding: 0.8rem 0.8rem 0 0.8rem;
    border-left: 0.2rem solid #cccccc;
    background-color: #f5f8fa;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
    overflow: auto;
}
.type-text .type-image {
    margin-bottom: 0.6rem;
}
.type-text-content {
    margin-bottom: 0.8rem;
}
.type-text-content p {
    margin-bottom: 0.2rem;
}
.type-text-content strong {
    color: #f57f59;
}
.type-info {
    margin-bottom: 1rem;
    background-color: #e9ecef;
    display: table;
    width: 100%;
}
.type-info:hover {
    background-color: #dee2e6;
    cursor: pointer;
}
.info-img {
    display: table-cell;
    vertical-align: top;
    text-align: left;
}
.info-body {
    display: table-cell;
    vertical-align: middle;
    padding: 0 1rem;
    text-align: left;
}
.info-btn {
    display: table-cell;
    vertical-align: middle;
    padding-right: 1rem;
    text-align: right;
}
.info-basis .info-img,.info-basis img {
    width: 50px;
    height: 50px;
}
.info-big .info-img,.info-big img {
    width: 100px;
    height: 100px;
}
.info-portrait .info-img,.info-portrait img {
    width: 90px;
    height: 100px;
}
.info-landscape .info-img,.info-landscape img {
    width: 110px;
    height: 70px;
}
.info-body .info-title {
    font-size: 0.88rem;
    line-height: 1.3;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.info-body .info-desc {
    font-size: 0.8rem;
    color: #888888;
    margin-top: 0.4rem;
}

.thread-label-img {
    max-height: 60px;
}

/* thread allow */
.info-allow {
    width: 60%;
    margin: 0 auto;
}
.info-allow_content {
    visibility: visible;
    user-select: none;
    pointer-events: none;
}
.info-allow_mask_static {
    margin-top: -120px;
    height: 120px;
    position: relative;
    background: -webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,0)),to(#fff));
    background: linear-gradient(to bottom,rgba(255,255,255,0),#fff);
    pointer-events: none;
}

/* TabBar */
.tabbar {
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,.075)!important;
    padding: 0 20px;
    max-width: 640px;
    margin: 0 auto;
}

.tabbar a {
    padding: 6px 0 4px 0;
    text-decoration: none;
}

.tabbar-icon {
    width: 24px;
    height: 24px;
}

.tabbar-text {
    font-size: 12px;
}

/* Footer */
.footer {
    font-size: 14px;
}

/* editor */
.editor-categories {
    background-color: #fff;
    padding: 1rem;
}
.editor-categories:hover {
    background-color: #e2e6ea;
    cursor: pointer;
}
.editor-form {
    background-color: #fff;
    padding: 1rem 0.75rem 1.5rem 0.75rem;
}
.editor-box {
    background-color: #f8f9fa;
}
.editor-box .btn-group {
    border-radius: 0;
}
.editor-box .btn-editor {
    display: grid;
    border-radius: 0;
}
.editor-box .btn-editor i{
    font-size: 1.5rem;
    margin-top: 0.2rem;
}
.editor-box .btn-editor span {
    font-size: 0.75rem;
    white-space: nowrap;
    margin-top: 0.2rem;
}
.emoji-box {
    min-width: 22.4rem;
    padding: 0;
}
.emoji-img img {
    padding: 0.2rem;
}
.editor-title {
    border-radius: 0;
    border: none;
    padding-left: 0.8rem;
}
.editor-title:focus {
    box-shadow: none;
}
.editor-content {
    border-radius: 0;
    border: none;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.textarea_wrapper {
    width: 100%;
    height: auto;
}
.editor-attachments {
    padding: 0 0.8rem;
}
.editor-attachments .list-group {
    border-radius: 0;
    font-size: 0.9rem;
}
.editor-attachments .list-group-item {
    padding: 0.6rem 0.9rem;
}
.editor-select {
    padding: 0 0.8rem;
    color: #353535;
}
.editor-markdown-title {
    margin-bottom: 1rem;
}
.editor-markdown-content {
    padding: 0 0.8rem;
}
.editor-markdown-edit {
    text-align: center;
    padding: 0 0.8rem;
}